<template>
  <iframe :src="src" :frameborder="frameborder" :width="width" :height="height"/>
</template>

<script lang="ts" setup>
  import screenHeight from '@/utils/screen-height';

  const props = defineProps({
    src: {
      type: String,
      default: '',
    },
    frameborder: {
      type: Number,
      default: 0,
    },
    width: {
      type: String,
      default: '100%',
    },
    // height: {
    //   type: String,
    //   default: '100%',
    // },
  });

  const height = screenHeight(230);
</script>

<style scoped lang="less">

</style>
